/*!
 * avangard/chat/channel_header.js
 * © 2009 avangardonline.ru
 * @author BlooDHounD <http://www.controller.by>
 */

if ( !window.controller ) throw new Error( '"controller" not initialized' );

controller.require( 'avangard.chat' );

if ( !avangard.chat.ChannelHeader ) {

	/**
	 * @class
	 * @namespace	avangard.chat
	 * @author		BlooDHounD	<http://www.controller.by>
	 */
	avangard.chat.ChannelHeader = ( function() {

		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------

		/**
		 * @constructor
		 * @param	{Number}	id
		 * @param	{Number}	type
		 * @param	{String}	name
		 */
		var ChannelHeader = function(id, type, name) {
			this.id =			id;
			this.type =			type;
			this.name =			name;
		};

		var	ChannelPrototype = ChannelHeader.prototype;

		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------

		/**
		 * @property
		 * @type	{Number}
		 */
		ChannelPrototype.id = 0;

		/**
		 * @property
		 * @type	{Number}
		 */
		ChannelPrototype.type = 0;

		/**
		 * @property
		 * @type	{String}
		 */
		ChannelPrototype.name = null;

		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------

		/**
		 * @method
		 * @return	{String}
		 */
		ChannelPrototype.toString = function() {
			return '[ChannelHeader object]';
		};

		//--------------------------------------------------------------------------
		//
		//  Class methods
		//
		//--------------------------------------------------------------------------

		/**
		 * @static
		 * @method
		 * @return	{String}
		 */
		ChannelHeader.toString = function() {
			return '[class ChannelHeader]';
		};

		return ChannelHeader;

	}() );

}